home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir30 / heaven_1.zip / DDALIAS.DOC < prev    next >
Text File  |  1993-11-01  |  2KB  |  52 lines

  1. Have you ever wanted to create an alias for a command without having to edit
  2. your ACAD.PGP file? Didn't you wish there was some way to assign aliases 
  3. through a dialog box? Now you can!
  4.  
  5. With DDALIAS, making aliases for commands is as easy as editing text in a 
  6. dialog box. All AutoCAD commands will be available to alias. Additionally, 
  7. any user commands that have been added will automatically be available to 
  8. alias.
  9.  
  10. How it works
  11. ────────────
  12. DDALIAS reads in your existing ACAD.PGP file. It parses it into a managable 
  13. list and creates a dialog box. On the left side of the dialog is a pop-down 
  14. list box. Use this list box to select the command to alias. Notice that all 
  15. of your commands in Release 12 and any custom commands are available. To 
  16. change or add an alias, pick in the text edit box and type the alias. Your 
  17. syntax will be checked. If you get the error message "Empty or invalid input" 
  18. you have entered illegal characters. Multiple aliases may be assigned to one 
  19. command by separating them with commas. If a duplicate alias is found you 
  20. will be notified. Once you pick OK, your new ACAD.PGP will be written and 
  21. initialized. All aliases are immediately available.
  22.  
  23. Installation
  24. ────────────
  25. Copy the file DDALIAS.DCL and DDALIAS.LSP to your AutoCAD directory. Change 
  26. the line as indicated in the remarks in DDALIAS.LSP to reflect the full path 
  27. to your ACAD.PGP file (look towards the top of the file). Load it and 
  28. type: DDALIAS.
  29.  
  30. Nitty Gritty
  31. ────────────
  32. This Autolisp routine actually steps through the atoms-family to determine 
  33. what custom commands have been added. It has some sophisticated code to 
  34. check for duplicate aliases. It actually use a list of paired lists to track 
  35. aliases. It also reads the current ACAD.PGP into a list before manipulating 
  36. it. This avoids having another file open. It actually writes the new file 
  37. over the existing one.
  38.  
  39. Fun Stuff
  40. ─────────
  41. This routine was written by:
  42. Michael Jenkins
  43. Gray Construction Company
  44. Lexington, Kentucky
  45.  
  46. To Autodesk
  47. ───────────
  48. You are welcome to include this code as tutorial material or any other purpose 
  49. you see fit. Personally, I would like to see it become a standard function 
  50. whether it comes from my code or not. It's definitely an encouragement to 
  51. use aliases!
  52.